﻿
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- saved from url=(0014)about:internet -->
<html xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:mssdk="winsdk" xmlns:script="urn:script" xmlns:build="urn:build" xmlns:MSHelp="http://msdn.microsoft.com/mshelp">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="Description" content="IDebugControl4 interface"/>
<meta name="MSHAttr" content="PreferredSiteName:MSDN"/>
<meta name="MSHAttr" content="PreferredLib:/library/windows/hardware"/>
<title>IDebugControl4</title>



<link rel="STYLESHEET" type="text/css" HREF="../common/backsdk4.css"/>





<style>
html,div { margin: 0; padding: 0;}

body {
	padding: 0px;
	margin: 0px;
	overflow: auto;
	height: 100%;
}

#winchm_template_button{
	float: right;
	width: 93px;
	top: 7px;
	position: relative;
	text-align: right;
	right: 5px;
	height: auto;
}

#winchm_template_top{
	padding: 0px;
	margin: 0px;
	border-bottom: 1px solid #9B9B9B;
	background-color: #B1CEFE;
}

#winchm_template_navigation{
	margin: 0px;
	padding-top: 7px;
	padding-left: 7px;
	padding-bottom: 3px;
	padding-right: 0px;
	font-size: 8.5pt;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: normal;
	color: #585858;
}

#winchm_template_title{
	margin: 0px;
	padding-top: 4px;
	padding-left: 7px;
	padding-bottom: 7px;
	padding-right: 0px;
	font-size: 18px; 
	font-family: Verdana, Geneva, sans-serif;
	color: #363636;
}

#winchm_template_content{
	margin-top: 20px;
	margin-left: 15px;
	margin-bottom: 20px;
	margin-right: 15px;
	width: auto  !important;
	width: 100%;
}

#winchm_template_footer{
	border-width: 1px;
	border-color: #B1CEFE;
	border-top-style: solid;
	margin-top: 15px;
	margin-left: 15px;
	margin-bottom: 20px;
	margin-right: 15px;
	padding-top: 7px;
	padding-left: 0px;
	padding-bottom: 0px;
	padding-right: 0px;
	font-family: arial, helvetica, sans-serif;
	font-size: 8.5pt;
	color: #696969;
	width: auto;
	text-align: left;
}


#winchm_template_container{
	margin: 0px;
	padding: 0px;
	position: static;
	padding-bottom: 3px;
	overflow: auto;
	background-color: #FFFFFF;
}


@media print
{
#winchm_template_container{
	position: static;	
	margin: 0px;
	padding: 5px;
	
	width: auto;
	height: auto;
	overflow: auto;
}
#winchm_template_button{
visibility:hidden;
}
}

#winchm_template_navigation A:link	{text-decoration: none; color:#004080}
#winchm_template_navigation A:visited  {text-decoration: none; color: #004080}
#winchm_template_navigation A:active {text-decoration: none; color: #004080 }
#winchm_template_navigation A:hover {text-decoration: none;color: #0080FF}

A:link	{text-decoration: underline; color:#0033CC}
A:visited  {text-decoration: underline; color: #0033CC}
A:active {text-decoration: underline; color: #0033CC }
A:hover {text-decoration: underline;color: #FF0000;}
</style>
<script type="text/javascript">
function isMobile(){
Agent = window.navigator.userAgent;
if (Agent.indexOf("iPhone")>=1 || Agent.indexOf("iPad")>=1 || Agent.indexOf("iPod")>=1 || Agent.indexOf("Android")>=1){
return true;
}else{
return false;	
}

}
function d_onresize(){
if (window.navigator.userAgent.indexOf("MSIE")>=1){
document.getElementById('winchm_template_container').style.pixelWidth = document.body.offsetWidth - 3;
document.getElementById('winchm_template_container').style.pixelHeight = document.body.offsetHeight - document.getElementById('winchm_template_top').offsetHeight - 4;
}
document.getElementById('winchm_template_container').style.top = document.getElementById('winchm_template_top').offsetHeight + 'px';
}

function d_onbeforeprint(){
document.getElementById('winchm_template_container').style.width = 'auto';
document.getElementById('winchm_template_container').style.height = 'auto';
}

function d_onafterprint(){
d_onresize();
}

if(!isMobile()){

window.onload = d_onresize;
window.onresize = d_onresize;
window.onbeforeprint = d_onbeforeprint;
window.onafterprint = d_onafterprint;

document.write("<style>\n");
document.write("body {overflow: hidden;}\n");
document.write("#winchm_template_container {position: absolute;overflow: auto;top : 0px;right: 0px;bottom: 0px;left: 0px;}\n");
document.write("</style>\n");
}

</script>
</head>
<body><script language="JavaScript" type="text/JavaScript">
function syn(){
if(parent.nav.tree){
 if(parent.nav.tree.loaded){
  parent.nav.tree.selectNode(489);
 }else{
  setTimeout("syn()",500);
}
  }else{
  setTimeout("syn()",500);
  }}
if(parent!=self){
  setTimeout("syn()",100);
}else{
  parent.location.href = "../../index.htm?page=debugger/idebugcontrol4.htm";
}
originalOnload = window.onload;
if(originalOnload==null){
window.onload = function(){parent.contentLoaded = true;};
}else{
window.onload = function(){originalOnload();parent.contentLoaded = true;};
}
</script> 


<div id="winchm_template_top">
	<div id="winchm_template_button"><A href="setnexteventindex.htm" title="Previous topic"><img id="winchm_template_prev" alt="Previous topic" src="../template2/btn_prev_n.gif" border="0"></a><A href="addbreakpoint2.htm" title="Next topic"><img id="winchm_template_next" alt="Next topic" src="../template2/btn_next_n.gif" border="0"></a></div>
	<div id="winchm_template_navigation">Help &gt; 
<A href="introduction6.htm">Debugging Tools for Windows (WinDbg, KD, CDB, NTSD)</A> &gt; <A href="debugging_resources.htm">Debugging Resources</A> &gt; <A href="debugger_engine_and_extension_apis.htm">Debugger Engine and Extension APIs</A> &gt; <A href="using_the_debugger_engine_api.htm">Using the Debugger Engine API</A> &gt; <A href="debugger_engine_reference.htm">Debugger Engine Reference</A> &gt; <A href="client_com_interfaces.htm">Debug Engine Interfaces</A> &gt; </div>
	<div id="winchm_template_title">IDebugControl4</div>
</div>
<div id="winchm_template_container">
	<div id="winchm_template_content"><div id="mainSection"><h2>Members</h2>
<p>The <b xmlns:loc="http://microsoft.com/wdcml/l10n">IDebugControl4</b> interface inherits from <a href="#Bookmark475"><b>IDebugControl3</b></a>. <b>IDebugControl4</b> also has these types of members:</p>
<ul>
<li><a href="#Bookmark489">Methods</a></li>
</ul>
<h3><a id="methods"></a>Methods</h3>
<p>The <b>IDebugControl4</b> interface has these methods.</p>
<table id="memberListMethods" class="members">
<tr>
<th align="left" width="37%">Method</th>
<th align="left" width="63%">Description</th>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark490"><b>AddBreakpoint2</b></a></td>
<td align="left" width="63%">
<p>Creates a new breakpoint for the current target.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark491"><b>AddExtensionWide</b></a></td>
<td align="left" width="63%">
<p>Loads an extension library into the debugger engine.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark492"><b>AssembleWide</b></a></td>
<td align="left" width="63%">
<p>Assembles a single processor instruction.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark493"><b>CallExtensionWide</b></a></td>
<td align="left" width="63%">
<p>Calls a debugger extension.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark495"><b>ControlledOutputVaListWide</b></a></td>
<td align="left" width="63%">
<p>Formats a string and sends the result to output callbacks that were registered with some of the engine's clients.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark494"><b>ControlledOutputWide</b></a></td>
<td align="left" width="63%">
<p>Formats a string and sends the result to output callbacks that were registered with some of the engine's clients.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark496"><b>DisassembleWide</b></a></td>
<td align="left" width="63%">
<p>Disassembles a processor instruction in the target's memory.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark497"><b>EvaluateWide</b></a></td>
<td align="left" width="63%">
<p>Evaluates an expression, returning the result.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark498"><b>ExecuteCommandFileWide</b></a></td>
<td align="left" width="63%">
<p>Opens the specified file and executes the debugger commands that are contained within.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark499"><b>ExecuteWide</b></a></td>
<td align="left" width="63%">
<p>Executes the specified debugger commands.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark500"><b>GetBreakpointById2</b></a></td>
<td align="left" width="63%">
<p>Returns the breakpoint with the specified breakpoint ID.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark501"><b>GetBreakpointByIndex2</b></a></td>
<td align="left" width="63%">
<p>Returns the breakpoint located at the specified index.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark502"><b>GetContextStackTrace</b></a></td>
<td align="left" width="63%">
<p>Returns the frames at the top of the call stack, starting with an arbitrary register context and returning the reconstructed register context for each stack frame.
</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark503"><b>GetEventFilterCommandWide</b></a></td>
<td align="left" width="63%">
<p>Returns the debugger command that the engine will execute when a specified event occurs.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark504"><b>GetEventFilterTextWide</b></a></td>
<td align="left" width="63%">
<p>Returns a short description of an event for a specific filter.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark505"><b>GetEventIndexDescriptionWide</b></a></td>
<td align="left" width="63%">
<p>Describes the specified event in a static list of events for the current target.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark506"><b>GetExceptionFilterSecondCommandWide</b></a></td>
<td align="left" width="63%">
<p>Returns the command that will be executed by the debugger engine upon the second chance of a specified exception.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark507"><b>GetExpressionSyntaxNamesWide</b></a></td>
<td align="left" width="63%">
<p>Returns the full and abbreviated names of an expression syntax.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark508"><b>GetExtensionByPathWide</b></a></td>
<td align="left" width="63%">
<p>Returns the handle for an already loaded extension library.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark509"><b>GetExtensionFunctionWide</b></a></td>
<td align="left" width="63%">
<p>Returns a pointer to an extension function from an extension library.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark510"><b>GetLastEventInformationWide</b></a></td>
<td align="left" width="63%">
<p>Returns information about the last event that occurred in a target.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark512"><b>GetLogFile2</b></a></td>
<td align="left" width="63%">
<p>Returns the name of the currently open log file.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark513"><b>GetLogFile2Wide</b></a></td>
<td align="left" width="63%">
<p>Returns the name of the currently open log file.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark511"><b>GetLogFileWide</b></a></td>
<td align="left" width="63%">
<p>Returns the name of the currently open log file.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><b>GetManagedStatus</b></td>
<td align="left" width="63%">
<p></p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><b>GetManagedStatusWide</b></td>
<td align="left" width="63%">
<p></p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark514"><b>GetProcessorTypeNamesWide</b></a></td>
<td align="left" width="63%">
<p>Returns the full name and abbreviated name of the specified processor type.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark515"><b>GetPromptTextWide</b></a></td>
<td align="left" width="63%">
<p> Returns the standard prompt text that will be prepended to the formatted output specified in the <a href="#Bookmark439"><i>OutputPrompt</i></a> and <a href="#Bookmark440"><i>OutputPromptVaList</i></a> methods.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark516"><b>GetSpecificFilterArgumentWide</b></a></td>
<td align="left" width="63%">
<p>Returns the value of filter argument for the specific filters that have an argument.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark517"><b>GetStoredEventInformation</b></a></td>
<td align="left" width="63%">
<p> Retrieves information about an event of interest available in the current target.
</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark518"><b>GetSystemVersionString</b></a></td>
<td align="left" width="63%">
<p>Returns a string that describes the target's operating system version.
(ANSI version)</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark519"><b>GetSystemVersionStringWide</b></a></td>
<td align="left" width="63%">
<p>Returns a string that describes the target's operating system version.
(Unicode version)</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark520"><b>GetSystemVersionValues</b></a></td>
<td align="left" width="63%">
<p>Returns version number information for the current target.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark521"><b>GetTextMacroWide</b></a></td>
<td align="left" width="63%">
<p>Returns the value of a fixed-name alias.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark522"><b>GetTextReplacementWide</b></a></td>
<td align="left" width="63%">
<p>Returns the value of a user-named alias or an automatic alias.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark523"><b>InputWide</b></a></td>
<td align="left" width="63%">
<p>Requests an input string from the debugger engine.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark524"><b>OpenLogFile2</b></a></td>
<td align="left" width="63%">
<p>Opens a log file that will receive output from the <a href="#Bookmark195">client objects</a>.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark525"><b>OpenLogFile2Wide</b></a></td>
<td align="left" width="63%">
<p>Opens a log file that will receive output from the <a href="#Bookmark195">client objects</a>.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark526"><b>OpenLogFileWide</b></a></td>
<td align="left" width="63%">
<p>Opens a log file that will receive output from the client objects.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark527"><b>OutputContextStackTrace</b></a></td>
<td align="left" width="63%">
<p>Prints the call stack specified by an array of stack frames and corresponding register contexts.
</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark528"><b>OutputPromptVaListWide</b></a></td>
<td align="left" width="63%">
<p>Formats and sends a user prompt to the output callback objects.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark529"><b>OutputPromptWide</b></a></td>
<td align="left" width="63%">
<p> Formats and sends a user prompt to the output callback objects.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark530"><b>OutputVaListWide</b></a></td>
<td align="left" width="63%">
<p>Formats a string and sends the result to the output callbacks that are registered with the engine's clients.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark531"><b>OutputWide</b></a></td>
<td align="left" width="63%">
<p> Formats a string and send the result to output callbacks that have been registered with the engine's clients.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark532"><b>RemoveBreakpoint2</b></a></td>
<td align="left" width="63%">
<p>Removes a breakpoint.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><b>ResetManagedStatus</b></td>
<td align="left" width="63%">
<p></p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark533"><b>ReturnInputWide</b></a></td>
<td align="left" width="63%">
<p>This method is used by <a href="#Bookmark816"><b>IDebugInputCallbacks</b></a> objects to send an input string to the engine following a request for input.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark535"><b>SetEventFilterCommandWide</b></a></td>
<td align="left" width="63%">
<p>Sets a debugger command for the engine to execute when a specified event occurs.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark536"><b>SetExceptionFilterSecondCommandWide</b></a></td>
<td align="left" width="63%">
<p>Sets the command that will be executed by the debugger engine on the second chance of a specified exception.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark534"><b>SetExpressionSyntaxByNameWide</b></a></td>
<td align="left" width="63%">
<p>Sets the syntax that the engine will use to evaluate expressions.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark537"><b>SetSpecificFilterArgumentWide</b></a></td>
<td align="left" width="63%">
<p>Sets the value of filter argument for the specific filters that can have an argument.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark538"><b>SetTextMacroWide</b></a></td>
<td align="left" width="63%">
<p>Sets the value of a fixed-name alias.</p>
</td>
</tr>
<tr data="declared;">
<td align="left" width="37%"><a href="#Bookmark539"><b>SetTextReplacementWide</b></a></td>
<td align="left" width="63%">
<p>Sets the value of a user-named alias.</p>
</td>
</tr>
</table>
<p> </p>
<h2>Requirements</h2>
<table>
<tr>
<th width="30%">
<p>Header</p>
</th>
<td width="70%">
<dl>
<dt>Dbgeng.h (include Dbgeng.h)</dt>
</dl>
</td>
</tr>
</table>
<h2><a id="see_also"></a>See also</h2>
<dl>
<dt><a href="#Bookmark374"><b>IDebugControl</b></a></dt>
<dt><a href="#Bookmark466"><b>IDebugControl2</b></a></dt>
<dt><a href="#Bookmark475"><b>IDebugControl3</b></a></dt></dl></div></div>	
	<div id="winchm_template_footer">Copyright &copy; 2019. All rights 
reserved. (To change the copyright info, just edit it in template.)</div>
</div>

</body>
</html>
